package com.bbm.communitysystem.service;

import com.bbm.communitysystem.domain.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bbm.communitysystem.domain.bo.RoleBo;
import com.bbm.communitysystem.domain.dto.role.RoleDto;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author bbm
 * @since 2025-02-13
 */
@Service
public interface IRoleService extends IService<Role> {

    int addRole(RoleDto roleDto);

    int putRole(RoleDto roleDto);

    int delRole(Integer id);

    RoleDto getRole(Integer id);

    RoleDto[] getRoleList(Integer[] ids);

    RoleDto getRole(Role role);

    RoleDto[] getRoleList(Role[] roles);

    int delPer(RoleBo roleBo);

    int delRouter(RoleBo roleBo);

    int delPerRouter(RoleBo roleBo);
}
